

<?php require_once '/config/config.php';       ?>
<?php 
$connect = mysql_connect($HOST .":". $POST , $USER , $PASSWORD) or die(mysql_error());

mysql_select_db($USER_DB ,$connect);


function getData($query){
    global $connect;
    $data = array();
    
    $result = mysql_query($query, $connect);
    while ($row = mysql_fetch_assoc($result)){
        
        $data[]= $row ;
    }
    return $data;
    
}


?>